package com.hefei.aop.aop;

import com.hefei.aop.annotation.GmallCache;
import org.springframework.stereotype.Service;

/**
 * @author caizhengjun
 * @date 2020/9/5 3:52 下午
 */
@Service
public class UserDaoImp implements UserDao {
    @Override
    public int addUser() {
        System.out.println("add user ......");
        return 666;
    }

    @Override
    @GmallCache
    public void updateUser() {
        //int i = 10 / 0;
        System.out.println("update user ......");
    }

    @Override
    public void deleteUser() {
        System.out.println("delete user ......");
    }

    @Override
    public void findUser() {
        System.out.println("find user ......");
    }
}
